在用户投中篮筐后,让我们在记分板上加一分,并将球重设。
- 在 if 语句内部,添加一个 0.5 秒的 Wait 指令。
- 使用 Go To 将 ball 返回到随机位置 (x, -25)。
- 使用两个名为 left_count 和 down_count的 Integer Variable 重新设置球场,并将两个变量的值都设为 0。
- 使用 Add Value 以将 score 增加 1,并使用 Update Display 来显示新的 score。
To navigate the page using the TAB key, first press ESC to exit the code editor.